
class tensor:
    index = 0
    mainFileArray = []
    def __init__(self,fileArray,column):
        nowIndex = 0
        self.mainFileArray = fileArray
        for line in fileArray[0]:
            if column in line:
                self.index=nowIndex
                break
            else: nowIndex+=1
        
    def getTensorArray(self):
        fileArrayIndex = 1
        for line in self.mainFileArray[1:]:
            self.mainFileArray[fileArrayIndex][self.index] = str(self.__ordLongStr(line[self.index]))
            fileArrayIndex +=1
        return self.mainFileArray
    def __ordLongStr(self,strText):
        allStrTensor = []
        for line in strText:
            allStrTensor.append(ord(str(line)))
        return allStrTensor